package sq.sms;

import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
import com.aliyuncs.exceptions.ClientException;

/**
 * 模板短信发送接口
 * @Author sunuquan
 */
public interface TplSmsSender {
    /**
     * 发送短信
     *
     * @param phone  手机号
     * @param tplId  模板ID
     * @param params 模板参数
     * @return SendSmsResponse 阿里短信发送接口返回值
     * @throws ClientException 短信发送异常
     */
    SendSmsResponse send(String phone, String tplId, String params) throws ClientException;
}
